﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PMP
{
    public class Library: ILibrary
    {
        public Library()
        {

        }

        public Library(string path)
        {

        }

        #region Privates
        private List<PlayList<MusicFile>> _PlayLists = new List<PlayList<MusicFile>>();
        private string _Path;
        #endregion

        #region ILibrary<DefaultPlayModes> Members

        public IEnumerable<PlayList<MusicFile>> PlayLists
        {
            get
            {
                foreach (var pl in _PlayLists)
                {
                    yield return pl;
                }
            }
        }

        public IEnumerable<MusicFile> MusicFiles
        {
            get
            {
                foreach (var pl in PlayLists)
                {
                    foreach (var m in pl.Contents)
                    {
                        yield return m;
                    }
                }
            }
        }

        public bool Save()
        {
            throw new NotImplementedException();
        }

        public bool Load()
        {
            throw new NotImplementedException();
        }

        public string Path
        {
            get
            {
                return _Path;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        #endregion
    }
}
